package com.chance.cc.crawler.development.command.publish.autohome;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.autohome.*;
import com.chance.cc.crawler.development.command.script.autohome.AutoHomeWebCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.autohome.AutoHomeWebScheduleTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2020-12-09 17:13:51
 * @email okprog@sina.com
 */
public class AutoHomePublishCrawlerJob {

    public static void main(String[] args) {
//        publishArticleCrawlerJob();
//        publishArticleTraceCrawlerJob();
//        publishForumReplyCrawlerJob();
//        publishForumReleaseCrawlerJob();
//        publishVideoCrawlerJob();
//        publishVideoTraceCrawlerJob();
//        publishPraiseCrawlerJob();
//        publishPraiseTraceCrawlerJob();
//        publishCheArticleCrawlerJob();
//        publishCheArticleTraceCrawlerJob();
//        publishCheVideoCrawlerJob();
//        publishCheVideoTraceCrawlerJob();
//        publishForumInteractionCrawlerJob();

        publishTestCrawlerJob();
    }



    /**
     * 汽车之家新闻采集job发布， trigger发布， script发布
     */
    public static void publishTestCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebCheVideoTraceCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeTestCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
    /**
     * 汽车之家新闻采集job发布， trigger发布， script发布
     */
    public static void publishArticleCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebArticleCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeArticleCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
    /**
     * 汽车之家新闻回溯三天回复采集job发布， trigger发布， script发布
     */
    public static void publishArticleTraceCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebArticleTraceCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeArticleTraceCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }


    /**
     * 汽车之家视频采集job发布， trigger发布， script发布
     */
    public static void publishVideoCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebVideoCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeVideoCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }


    /**
     * 汽车之家视频回溯三天回复采集job发布， trigger发布， script发布
     */
    public static void publishVideoTraceCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebVideoTraceCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeVideoTraceCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }

    /**
     * 汽车之家论坛最新回复采集job发布， trigger发布， script发布
     */
    public static void publishForumReplyCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebForumReplyCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeForumReplyCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
    /**
     * 汽车之家论坛最新发布采集job发布， trigger发布， script发布
     */
    public static void publishForumReleaseCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebForumReleaseCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeForumReleaseCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }


    /**
     * 汽车之家论坛追溯三天互动采集job发布， trigger发布， script发布
     */
    public static void publishForumInteractionCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebForumInteractionCrawlerSchedulerJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeForumInteractionCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }

    /**
     * 汽车之家口碑实时采集job发布， trigger发布， script发布
     */
    public static void publishPraiseCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebPraiseCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomePraiseCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }

    /**
     * 汽车之家口碑回溯三天回复采集job发布， trigger发布， script发布
     */
    public static void publishPraiseTraceCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebPraiseTraceCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomePraiseTraceCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }

    /**
     * 汽车之家车家号文章实时采集job发布， trigger发布， script发布
     */
    public static void publishCheArticleCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebCheArticleCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeCheArticleCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
    /**
     * 汽车之家车家号文章回溯三天回复采集job发布， trigger发布， script发布
     */
    public static void publishCheArticleTraceCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebCheArticleTraceCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeCheArticleTraceCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
    /**
     * 汽车之家车家号视频实时采集job发布， trigger发布， script发布
     */
    public static void publishCheVideoCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebCheVideoCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeCheVideoCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
    /**
     * 汽车之家车家号视频回溯三天回复采集job发布， trigger发布， script发布
     */
    public static void publishCheVideoTraceCrawlerJob(){
        CrawlerJob crawlerJob = AutoHomeWebCheVideoTraceCrawlerScheduleJob.publishAutoHomeCrawlerScheduleJobInfo();
        AutoHomeWebScheduleTrigger.publishAutoHomeCheVideoTraceCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        AutoHomeWebCrawlerScript.publishCrawlerNodeScript();
    }
}
